﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quartz;

namespace ServiceJob.Jobs
{
    class IJobWrite:IJob
    {
        public void Execute(Quartz.JobExecutionContext context)
        {
            try
            {
                var path = @"E:\1.txt";
                var curText = System.IO.File.ReadAllText(path);
                System.IO.File.WriteAllText(path, curText + "\r\n" + DateTime.Now.ToString());
                //context.Scheduler.DeleteJob(context.JobDetail.Name, context.JobDetail.Group);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
    }
}
